| Conditions | 1 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict'; |
||
| 16 | document.querySelector('#'.concat(window.ReCaptchaFormId)).addEventListener('submit', reCaptchaFormOnSubmit); |
||
| 17 | } |
||
| 18 | |||
| 19 | grecaptcha.render(reCaptcha, reCaptcha.dataset); |
||
|
|
|||
| 20 | } |
||
| 21 | |||
| 22 | function reCaptchaOnSubmit(token) { |
||
| 23 | document.querySelector('#'.concat(window.ReCaptchaFormId, ' .g-recaptcha-response')).value = token; |
||
| 24 | document.querySelector('#'.concat(window.ReCaptchaFormId)).submit(); |
||
| 25 | } |
||
| 26 | |||
| 33 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.